package qiurank;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Date;
import java.util.Properties;

/**
 * Created by Administrator on 2015/12/31.
 */
public class Config {
    public static final String config_path=System.getProperty("user.dir")+"/config.properties";//配置文件路径
    public static Properties properties=new Properties();
    public static String getValue(String key){
        try {
            properties.load(new FileInputStream(config_path));
            return properties.getProperty(key);

        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }

}
